package com.ego.controller;

import com.ego.pojo.EgoResult;
import com.ego.service.ItemParamItemService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
public class ItemParamItemController {

    @Autowired
    private ItemParamItemService itemParamItemService;

    @RequestMapping("/rest/item/param/item/query/{itemId}")
    @ResponseBody
    public EgoResult getItemParamItem(@PathVariable long itemId) {
        return itemParamItemService.selectItemParamItemByItemId(itemId);
    }

}
